//---------------------------------------------------------------------------

#ifndef code_frmConfigH
#define code_frmConfigH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>
#include "CSPIN.h"
//---------------------------------------------------------------------------
class TfrmConfig : public TForm
{
__published:	// IDE-managed Components
        TBitBtn *btnExit;
        TBitBtn *btnOK;
        TBitBtn *btnDefault;
        TLabel *Label1;
        TPageControl *pgcConfig;
        TTabSheet *tsNet;
        TGroupBox *grpNet;
        TCheckBox *chkNet;
        TGroupBox *grpRecord;
        TLabel *Label4;
        TLabel *Label5;
        TCheckBox *chkRecord;
        TEdit *edtRecordFileSize;
        TTabSheet *tsVideo;
        TLabel *lblChannel;
        TLabel *lblTimeZone;
        TImage *imgVideo;
        TLabel *lblBright;
        TLabel *lblHue;
        TLabel *lblSaturation;
        TLabel *lblContrast;
        TComboBox *cbbChannelName;
        TComboBox *cbbTimeZone;
        TTrackBar *trckbrBright;
        TTrackBar *trckbrHue;
        TTrackBar *trckbrSaturation;
        TTrackBar *trckbrContrast;
        TTabSheet *tsDetect;
        TGroupBox *grpLoop;
        TLabel *Label10;
        TLabel *Label13;
        TLabel *Label14;
        TLabel *Label15;
        TLabel *Label16;
        TLabel *Label17;
        TLabel *Label18;
        TCheckBox *chkEnableTimeOut;
        TGroupBox *grpCom;
        TLabel *Label19;
        TLabel *Label20;
        TComboBox *cbbSensor;
        TComboBox *cbbRedDetector;
        TTabSheet *TabSheet3;
        TGroupBox *grpTimeZone;
        TLabel *Label26;
        TLabel *Label27;
        TLabel *Label28;
        TLabel *Label29;
        TLabel *Label30;
        TLabel *Label31;
        TLabel *Label32;
        TLabel *Label33;
        TLabel *Label35;
        TLabel *Label36;
        TLabel *Label37;
        TLabel *lblCurrentTime;
        TTabSheet *TabSheet4;
        TGroupBox *grbChannel;
        TLabel *Label34;
        TLabel *Label39;
        TLabel *Label40;
        TLabel *Label42;
        TComboBox *cbbChannelNum;
        TEdit *edtChannelName;
        TComboBox *cbbChannelType;
        TComboBox *cbbLaneType;
        TTreeView *tvChannel;
        TTabSheet *TabSheet5;
        TLabel *Label48;
        TLabel *Label49;
        TLabel *Label50;
        TLabel *Label51;
        TBitBtn *btnSelect;
        TBitBtn *btnDeSelect;
        TBitBtn *btnSelectAll;
        TBitBtn *btnDeSelectAll;
        TComboBox *cbbCurrentDisk;
        TGroupBox *GroupBox11;
        TRadioButton *rbAlarm;
        TRadioButton *rbOverWrite;
        TLabel *lblDBType;
        TComboBox *cbbDBType;
        TLabel *lblIP;
        TEdit *edtIP;
        TGroupBox *grpRecognize;
        TCheckBox *chkEnableRcgnz;
        TCheckBox *chkEnableGreenCap;
        TCSpinEdit *edtSensorTimeOut;
        TCSpinEdit *edtMergeLimit;
        TCSpinEdit *edtSpaceTime;
        TCSpinEdit *edtDegree;
        TGroupBox *grbRedDetector;
        TLabel *Label43;
        TLabel *Label44;
        TLabel *Label45;
        TEdit *edtDetectorNum;
        TEdit *edtDetectorPort;
        TGroupBox *grpSensor;
        TLabel *Label46;
        TComboBox *cbbSensorGroupNum;
        TLabel *Label47;
        TEdit *edtLoopSpace;
        TBitBtn *btnUpdateChannel;
        TCSpinEdit *edtHistoryDays;
        TListBox *lstLocalDisk;
        TListBox *lstStorageDisk;
        TBitBtn *btnAddChannel;
        TLabel *lbl1;
        TDateTimePicker *dtpRedDuration;
        TDateTimePicker *dtpTZ1From;
        TDateTimePicker *dtpTZ2From;
        TDateTimePicker *dtpTZ3From;
        TDateTimePicker *dtpTZ4From;
        TDateTimePicker *dtpTZ5From;
        TDateTimePicker *edtTZ1To;
        TDateTimePicker *edtTZ2To;
        TDateTimePicker *edtTZ3To;
        TDateTimePicker *edtTZ4To;
        TDateTimePicker *dtpTZ5To;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall chkNetClick(TObject *Sender);
        void __fastcall chkRecordClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TfrmConfig(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmConfig *frmConfig;
//---------------------------------------------------------------------------
#endif
